import { createRouter, createWebHistory } from 'vue-router'
import myFirst from '@/view/myFirst.vue'
import mySecond from '@/view/mySecond.vue'
import myThree from '@/view/myThree.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: myFirst
  },
  {
    path: '/mySecond',
    name: 'mySecond',
    component: mySecond
  },
  {
    path: '/myThree',
    name: 'myThree',
    component: myThree
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
